package yf.mall.dao;

import org.apache.ibatis.annotations.Param;
import yf.mall.entity.AreaEntity;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;
import yf.mall.vo.AreaVo;

import java.util.List;

/**
 * 区域代理Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu May 07 14:16:15 CST 2020
 */
@Mapper
public interface AreaDao extends BaseDao<AreaEntity> {



        List<AreaVo> queryListVo(AreaVo areaVo);

        AreaVo getVo(Long id);




    AreaEntity findByNameAndGoodsId(@Param("name") String name, @Param("goodsId") Long goodsId);

    AreaEntity findByName(@Param("name") String name);

    List<AreaEntity> findByUserId(Long userId);
}
